﻿<%@ page language="java" 
	contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>添加用户信息</title>
	<script type="text/javascript">
		function check(form){
			with(form){
				if(uname.value == ""){
					alert("用户名不能为空");
					return false;
				}
				if(upassword.value == ""){
					alert("密码不能为空");
					return false;
				}
				return true;
			}
		}
	</script>
</head>
<body>
	<form action="AddUser.jsp" method="post" onsubmit="return check(this);">
		<table align="center" width="450">
			<tr>
				<td align="center" colspan="2">
					<h2>添加用户</h2>
					<hr>
				</td>
			</tr>
			<tr>
				<td align="right">用户名：</td>
				<td><input type="text" name="uname" /></td>
			</tr>
			<tr>
				<td align="right">密  码：</td>
				<td><input type="password" name="upassword" /></td>
			</tr>

			<tr>
				<td align="center" colspan="2">
					<input type="submit" value="添　加">
				</td>
			</tr>
		</table>
	</form>
</body>
</html>